package com.example.service;

import com.example.service.OrderService;

public class OrderServiceImpl implements OrderService {
    @Override
    public void add(String name, int number) {
        System.out.println("[业务] 添加商品 -> " + name + " , 数量 = " + number);
    }

    @Override
    public void delete(String name) {
        System.out.println("[业务] 删除商品 -> " + name);
    }

    @Override
    public int find(String name) {
        System.out.println("[业务] 查询商品 -> " + name);
        return 5; // 模拟购物车有 5 个
    }
}